package com.hunanwenli.movie.service.impl.daoImp;

import com.hunanwenli.entity.UserPwd;
import com.hunanwenli.movie.mapper.UserPwdMapper;
import com.hunanwenli.movie.service.UserPwdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author wanzhenyu
 * @date 2021/5/29 22:22
 */
@Service
@Transactional(rollbackFor=RuntimeException.class)
public class UserPwdServiceImpl implements UserPwdService {
    @Autowired
    private UserPwdMapper servicePwd;

    @Override
    public UserPwd selectByPrimaryKey(Integer id) {
        return servicePwd.selectByPrimaryKey(id);
    }

    @Override
    public int insert(UserPwd record) {
        return servicePwd.insert(record);
    }

    @Override
    public int updateByPrimaryKeySelective(UserPwd record) {
        return servicePwd.updateByPrimaryKeySelective(record);
    }
}
